package com.flynn.rock.system.convert;

import com.flynn.rock.system.entity.SysDeptEntity;
import com.flynn.rock.system.model.vo.DeptListVo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public abstract class AbstractDeptConvert {

    public static final AbstractDeptConvert INSTANCE = Mappers.getMapper(AbstractDeptConvert.class);

    public abstract DeptListVo toDeptListVo(SysDeptEntity entity);
}
